/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bikeapp;

/**
 *
 * @author junliu
 */
public class Bike {
    int cadence = 0;    //instance variables
    int speed = 0;      //instance variables
    int gear = 1;       //instance variables
    
    
    
    
    
    void changeCadence(int newValue){
        cadence = newValue;
    }
            
    void changeSpeed(int newValue){
        speed = newValue;
    }
    
    void changeGear(int newValue){
        gear = newValue;
    }
    
    void speedUp(int newValue){
        speed = speed + newValue;
    }
    
    
    void speedDown(int newValue){
        speed = speed - newValue;
    }
    
    
    void printStats(){
        System.out.println("Cadence is:" +cadence + " speed is:" +speed + " gear is:" +gear);
    }
    
}
